package com.wanshi.entity;


import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class User implements Serializable {

    public static void main(String[] args) {
        String zhengze = "^[a-zA-Z0-9_]{6,20}$";

        System.out.println("zhang123".matches(zhengze));
    }

    private int id;
    private String username;
    private String password;
    private String gender;
    private String hobby ;
    private  String city ;
    private String introduce ;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public User(String username, String password, String gender, String hobby, String city, String introduce) {
        this.username = username;
        this.password = password;
        this.gender = gender;
        this.hobby = hobby;
        this.city = city;
        this.introduce = introduce;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", gender='" + gender + '\'' +
                ", hobby='" + hobby + '\'' +
                ", city='" + city + '\'' +
                ", introduce='" + introduce + '\'' +
                '}';
    }

}
